package com.itbz.pojo;

import java.io.Serializable;

public class Score implements Serializable {
    private int  sid;
    private String sname;
    private int first;
    private int second;
    private int srid;
    private Room room;

    public Score(){

    }

    public Score(int sid, String sname, int first, int second, int srid, Room room) {
        this.sid = sid;
        this.sname = sname;
        this.first = first;
        this.second = second;
        this.srid = srid;
        this.room = room;
    }
    public Score( String sname, int first, int second,int srid) {
        this.sname = sname;
        this.first = first;
        this.second = second;
        this.srid=srid;
    }

    public int getSid() {
        return sid;
    }

    public void setSid(int sid) {
        this.sid = sid;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public int getFirst() {
        return first;
    }

    public void setFirst(int first) {
        this.first = first;
    }

    public int getSecond() {
        return second;
    }

    public void setSecond(int second) {
        this.second = second;
    }

    public int getSrid() {
        return srid;
    }

    public void setSrid(int srid) {
        this.srid = srid;
    }

    public Room getRoom() {
        return room;
    }

    public void setRoom(Room room) {
        this.room = room;
    }

    @Override
    public String toString() {
        return "Score{" +
                "sid=" + sid +
                ", sname='" + sname + '\'' +
                ", first=" + first +
                ", second=" + second +
                ", srid=" + srid +
                ", room=" + room +
                '}';
    }
}
